# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-applications
pkgname=kweather
pkgver=23.08.4
pkgrel=0
pkgdesc="Weather application for Plasma Mobile"
url="https://invent.kde.org/plasma-mobile/kweather"
# armhf blocked by qt5-qtdeclarative
arch="all !armhf"
license="GPL-2.0-or-later AND CC-BY-4.0"
depends="
	kirigami-addons
	kirigami2
	kquickcharts5
	"
makedepends="
	extra-cmake-modules
	kconfig5-dev
	kcoreaddons5-dev
	ki18n5-dev
	kirigami-addons-dev
	kirigami2-dev
	knotifications5-dev
	kquickcharts5-dev
	kweathercore-dev
	plasma-framework5-dev
	qt5-qtbase-dev
	qt5-qtcharts-dev
	qt5-qtdeclarative-dev
	qt5-qtquickcontrols2-dev
	qt5-qtsvg-dev
	samurai
	"
subpackages="$pkgname-lang"
_repo_url="https://invent.kde.org/utilities/kweather.git"
source="https://download.kde.org/stable/release-service/$pkgver/src/kweather-$pkgver.tar.xz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
699e536757e057c35b76f59cb425c82b809af055887963a1e49359d2c254515d1bcc1334ed21b5f5aa9dfafbfd122998ff14fb17998fae1ad1d4e66ac1be5890  kweather-23.08.4.tar.xz
"
